<#assign ctx=request.contextPath />
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>添加</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/static/layuiadmin/layui/css/layui.css" media="all">

    <link rel="stylesheet" href="${ctx}/static/layuiadmin/style/admin.css" media="all">
</head>
<body>
<form class="layui-form" action="" id="shenhe">
    <div class="layui-form" lay-filter="layuiadmin-form-shenhe" id="layuiadmin-form-shenhe" style="padding: 20px 0 0 0;">

        <div class="layui-form-item">
            <label class="layui-form-label">安全码</label>
            <div class="layui-input-block" style="width:200px">
                <input type="text" name="code" id="code" lay-verify="required" placeholder="请输入安全码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
                <input   name="orderId" id="orderId" readonly="readonly" lay-verify="required" type="hidden"   placeholder="订单号" autocomplete="off" class="layui-input">

        </div>
        <div class="layui-form-item layui-hide">
            <input type="button" lay-submit lay-filter="LAY-shenhe-front-submit" id="LAY-shenhe-front-submit" value="确认">
        </div>
    </div>
</form>
<script src="${ctx}/static/layuiadmin/layui/layui.js"></script>
<script>
    var ctx = "${ctx}";
    layui.config({
        base: ctx + '/static/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form', 'upload','layedit'], function(){
        var $ = layui.$
            ,form = layui.form
            ,layedit = layui.layedit
            ,upload = layui.upload;
        var infoDetailEdit = layedit.build('condition'); //建立编辑器;
        form.verify({
            condition: function(value) {
                return layedit.sync(infoDetailEdit);
            }
        });

    })
</script>
</body>
</html>